<!-- Begin groups/view.tpl -->

<img src="{grouplogo id=$group.gid}" />
{opentable}
{titlebar colspan=4 title="Group Information"}
<tr>
	<td class="sectiontableentry2" width="30%" align="right" valign="top">{$lg->name}</td>
	<td class="sectiontableentry1" colspan=3>{$group.name}</td>
</tr>
<tr>
	<td class="sectiontableentry2" align="right" valign="top">{$lg->grptp}</td>
	<td class="sectiontableentry1" colspan=3 >{f_dd01_cv id=grptp value=$group.grptp}</td>
</tr>
<tr>
	<td class="sectiontableentry2" align="right" valign="top">{$lg->appli}</td>
	<td class="sectiontableentry1" colspan=3  >{f_dd01_cv id=appli value=$group.appli}</td>
</tr>
<tr>
	<td class="sectiontableentry2" align="right" valign="top">{$lg->adress}</td>
	<td class="sectiontableentry1" colspan=3>{$group.address}</td>
</tr>
<tr>
	<td class="sectiontableentry2" align="right" valign="top">{$lg->city}</td>
	<td class="sectiontableentry1" colspan=3>{$group.address2}</td>
</tr>
{if is_array($t_part) > 0}
{titlebar colspan=2 title=$lg->parts}
	{foreach from=$t_part item=s_part}
		<tr>
			<td class="sectiontableentry2" width="30%" align="right" valign="top">{$s_part.vtext}</td>
			<td class="sectiontableentry1" width="15%">{$s_part.fname}</td>
			<td class="sectiontableentry1" width="15%">{$s_part.lname}</td>
			<td class="sectiontableentry1" width="45%">{$s_part.email}</td>
		</tr>	
	{/foreach}
{/if}
{titlebar colspan=2 title=$lg->group_data}
	<tr>
		<td class="sectiontableentry2" align="right" valign="top">{$lg->acctp}</td>
		<td class="sectiontableentry1" colspan=3>{f_dd01_cv id=acctp value=$group.acctp}</td>
	</tr>


{if !empty($group.email)}
<tr>
	<td class="sectiontableentry2" align="right" valign="top">{$lg->email}</td>
	<td class="sectiontableentry1" colspan=3>{$group.email}</td>
</tr>
{/if}
<tr>
	<td class="sectiontableentry2" align="right" valign="top">{$lg->comment}</td>
	<td class="sectiontableentry1" colspan=3>{$group.notes}</td>
</tr>

{if is_array($members)}
<tr>
<td class="sectiontableentry2" width="30%" align="right" valign="top">{$lg->members} (*)</td>
	<td class="sectiontableentry1" colspan=3>
		<table width="100%" cellpadding="2" cellspacing="0">
		{php}$col = 0;{/php}
		{foreach from=$members key=userid item=username}
			{php}if ($col == 0) { print "<tr class=\"sectiontableentry1\">\n"; }{/php}
	
			{if is_admin($userid)}
			<td width="33%" style="border: none;"><font color="red">{$username}</font></td>
			{elseif permission_check("update_group",$smarty.get.gid,$userid)}
			<td width="33%" style="border: none;"><font color="blue">{$username}</font></td>
			{else}
			<td width="33%" style="border: none;">{$username}</td>
			{/if}
			{php}$col++; if ($col == 3) { print "</tr>\n"; $col = 0; }{/php}
		{/foreach}
		</table>
	</td>
</tr>
{/if}
</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
	<td class="footer"><b>(*) Note:</b></td>
	</tr>
	<tr>
	<td class="footer">Users in <font color="red">red</font> are system administrators.</td>
	</tr>
	<tr>
	<td class="footer">Users in <font color="blue">blue</font> are group administrators.</td>
	</tr>
</table>
<!-- End groups/view.tpl -->

